import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 ProductCategory 分页列表
 */
export function getProductCategoryPagination(data: any) {
  return axios.get(`${context}/productCategory/pagination`, { params: data })
}

/**
 * 获取 ProductCategory 所有数据
 */
export function getProductCategoryAllList(data: any) {
  return axios.get(`${context}/productCategory/allList`, { params: data })
}

/**
 * 获取 ProductCategory 详情
 */
export function getProductCategoryDetailById(id: any) {
  return axios.get(`${context}/productCategory/${id}`, { params: { id } })
}

/**
 * 新增 ProductCategory
 */
export function addProductCategory(data: any) {
  return axios.post(`${context}/productCategory`, data)
}

/**
 * 修改 ProductCategory
 */
export function updateProductCategory(data: any) {
  return axios.put(`${context}/productCategory`, data)
}

/**
 * 删除 ProductCategory
 */
export function batchRemoveProductCategory(data: any) {
  return axios.post(`${context}/productCategory/batchRemove`, data)
}
